home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Gobby 0.4.7 / gobby-0.4.7.exe / {app} / share / gtksourceview-2.0 / language-specs / gtkrc.lang < prev    next >
Extensible Markup Language  |  2008-09-09  |  4KB  |  115 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Authors: Link M Dupont, Andrew Johnson
  5.  Copyright (C) 2005 Link M Dupont <link@subpop.net>
  6.  Copyright (C) 2005 Andrew Johnson <acjgenius@earthlink.net>
  7.  
  8.  This library is free software; you can redistribute it and/or modify
  9.  it under the terms of the GNU General Public License as published by
  10.  the Free Software Foundation; either version 2 of the License, or
  11.  (at your option) any later version.
  12.  
  13.  This program is distributed in the hope that it will be useful,
  14.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  GNU General Public License for more details.
  17.  
  18.  You should have received a copy of the GNU General Public License
  19.  along with this program; if not, write to the Free Software
  20.  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  21.  
  22. -->
  23. <language id="gtkrc" _name="GtkRC" version="2.0" _section="Others">
  24.   <metadata>
  25.     <property name="mimetypes">text/x-gtkrc</property>
  26.     <property name="globs">gtkrc;.gtkrc;gtkrc-*;.gtkrc-*</property>
  27.     <property name="line-comment-start">#</property>
  28.   </metadata>
  29.  
  30.   <styles>
  31.     <style id="comment" _name="Comment" map-to="def:comment"/>
  32.     <style id="string" _name="String" map-to="def:string"/>
  33.     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  34.     <style id="decimal" _name="Decimal" map-to="def:decimal"/>
  35.     <style id="variable" _name="Data Type" map-to="def:type"/>
  36.     <style id="state" _name="Widget State" map-to="def:special-constant"/>
  37.     <style id="include-directive" _name="Include directive" map-to="def:preprocessor"/>
  38.     <style id="boolean-value" _name="Boolean value" map-to="def:boolean"/>
  39.   </styles>
  40.  
  41.   <definitions>
  42.     <context id="double-quoted-string" style-ref="string" end-at-line-end="true">
  43.       <start>"</start>
  44.       <end>"</end>
  45.       <include>
  46.         <context ref="def:escape"/>
  47.         <context ref="def:line-continue"/>
  48.       </include>
  49.     </context>
  50.     <context id="single-quoted-string" style-ref="string" end-at-line-end="true">
  51.       <start>'</start>
  52.       <end>'</end>
  53.       <include>
  54.         <context ref="def:escape"/>
  55.         <context ref="def:line-continue"/>
  56.       </include>
  57.     </context>
  58.     <context id="line-comment" style-ref="comment" end-at-line-end="true">
  59.       <start>#</start>
  60.       <include>
  61.         <context ref="def:escape"/>
  62.         <context ref="def:line-continue"/>
  63.       </include>
  64.     </context>
  65.     <context id="keysymbol" style-ref="keyword">
  66.       <match>::|=</match>
  67.     </context>
  68.     <context id="number" style-ref="decimal">
  69.       <match>\b[0-9][0-9\.]*\b</match>
  70.     </context>
  71.     <context id="keyword" style-ref="keyword">
  72.       <keyword>style</keyword>
  73.       <keyword>engine</keyword>
  74.       <keyword>widget_class</keyword>
  75.       <keyword>class</keyword>
  76.       <keyword>widget</keyword>
  77.     </context>
  78.     <context id="variable" style-ref="variable">
  79.       <keyword>fg</keyword>
  80.       <keyword>bg</keyword>
  81.       <keyword>bg_pixmap</keyword>
  82.       <keyword>base</keyword>
  83.       <keyword>text</keyword>
  84.     </context>
  85.     <context id="state" style-ref="state">
  86.       <keyword>ACTIVE</keyword>
  87.       <keyword>SELECTED</keyword>
  88.       <keyword>NORMAL</keyword>
  89.       <keyword>PRELIGHT</keyword>
  90.       <keyword>INSENSITIVE</keyword>
  91.     </context>
  92.     <context id="include-directive" style-ref="include-directive">
  93.       <keyword>include</keyword>
  94.     </context>
  95.     <context id="boolean-value" style-ref="boolean-value">
  96.       <keyword>TRUE</keyword>
  97.       <keyword>FALSE</keyword>
  98.     </context>
  99.     <context id="gtkrc">
  100.       <include>
  101.         <context ref="double-quoted-string"/>
  102.         <context ref="single-quoted-string"/>
  103.         <context ref="line-comment"/>
  104.         <context ref="keysymbol"/>
  105.         <context ref="number"/>
  106.         <context ref="keyword"/>
  107.         <context ref="variable"/>
  108.         <context ref="state"/>
  109.         <context ref="include-directive"/>
  110.         <context ref="boolean-value"/>
  111.       </include>
  112.     </context>
  113.   </definitions>
  114. </language>
  115.